package com.token.sysflow.action;
import com.token.base.AgentAction;
import com.token.base.FuncUtil;
import com.token.sql.IntegrateSql;
import com.token.sysflow.service.AppFlowTree;


/**
 * @author chenjianxiong 2020/5/15
 */
public class LeftFlowTree implements AgentAction {
    public void executeAction(FuncUtil f) throws Exception {

    }
    public void executeAction(FuncUtil f, IntegrateSql iSql) throws Exception {
        AppFlowTree appFlowTree = new AppFlowTree(iSql);
        f.putJsonData("data", appFlowTree.getAppFlowTreeData(f.getUrlQueryString("appKeyId",true,"应用ID")));
        f.putJsonData("selectedKeys",appFlowTree.getSelectedKeys());
        appFlowTree.close();
    }

}
